package org.llc.oauthclient.client;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 授权码获取token DTO
 * <p>
 *     感觉外部调用应该获取不到我的DTO就按照token传递吧
 *     现在用的是这个{@link}
 * </p>
 *
 * @deprecated
 * @author llcs
 * @date 2019/11/27 12:15
 * @since 1.0.0
 */
@Data
@Deprecated
@ApiModel(value = "ReqGetTokenByAuthorizationCodeDTO", description = "授权码获取token DTO")
public class ReqGetTokenByAuthorizationCodeDTO {

    @NotBlank(message = "授权码")
    @ApiModelProperty(value = "授权码",required = true)
    private String code;

    @NotBlank(message = "重定向URL")
    @ApiModelProperty(value = "重定向URL",required = true)
    private String redirectUri;

    @NotBlank(message = "客户端ID")
    @ApiModelProperty(value = "客户端ID",required = true)
    private String clientId;

    @NotBlank(message = "客户端密钥")
    @ApiModelProperty(value = "客户端密钥",required = true)
    private String clientSecret;
}
